import { SAVE_TITLE } from "../action_types";

let initTitle = ""

export default function getTitle(preState = initTitle, action) {
    switch (action.type) {
        case SAVE_TITLE:
            return action.data;
        default:
            return preState;
    }
}